package com.wctj.api.business.common.component;

import org.springframework.context.ApplicationEvent;

/**
 * @Author: lzg
 * @Date: 2024/09/23 10:25
 */
public class AsyncTransactionalEvent extends ApplicationEvent {
    private Runnable task;
    private String id;

    public Runnable getTask() {
        return task;
    }

    public String getId() {
        return id;
    }

    public AsyncTransactionalEvent(Object source, String id, Runnable task) {
        super(source);
        this.id = id;
        this.task = task;
    }
}
